home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / SysMenu 1.4 Folder.sit / SysMenu 1.4 Folder / SysMenu 1.4 / sysmenu.h < prev    next >
Text File  |  1995-07-27  |  2KB  |  54 lines

  1. // File "sysmenu.h" - 
  2.  
  3. #ifndef ____SYSMENU_HEADER____
  4. #define ____SYSMENU_HEADER____
  5.  
  6. // * ******************************************************************************* *
  7. // * ******************************************************************************* *
  8.  
  9. // Basic debugging flag that enables/disables all Debug() 
  10. // and DebugStr() calls embedded into the source files.
  11. // #define ____DEBUG____ 
  12.  
  13. // When we install the Menu, we will try to get this MenuID. If 
  14. // there is already one (2 copies of INIT?), we will do our best
  15. // to get another (but close) ID. (See InsertMenu patch)
  16. #define kPrefMenuID        -19999
  17.  
  18. // This is an icon family for the menu. Currently the value is set
  19. // to something guaranteed to be available (from the system file).
  20. // You can set it to an icon from your resfile or to 0 for no icon.
  21. #define kPrefIconID        -16396
  22.  
  23. // * ******************************************************************************* *
  24. // * ******************************************************************************* *
  25.  
  26. typedef struct {
  27.     ProcPtr saveInsertMenu;
  28.     ProcPtr saveDrawMenuBar;
  29.     ProcPtr saveMenuSelect;
  30.     ProcPtr saveSystemMenu;
  31.     
  32.     short menuID, **sysMenus;
  33.     MenuHandle mHdl;
  34.     Handle menuIcon;
  35.     FSSpec homeFile;
  36.     } GlobalsRec;
  37.  
  38. // * ******************************************************************************* *
  39. // * ******************************************************************************* *
  40. // Function Prototypes
  41.  
  42. void __Startup__(void);
  43. void main(void);
  44. short CurResFileAsFSSpec(FSSpec *fileSpec);
  45. ProcPtr ApplyTrapPatch(short trap, ProcPtr patchPtr);
  46. pascal short DetachIcons(long iconType, Handle *iconHdl, void *data);
  47.  
  48. pascal void Patched_InsertMenu(MenuHandle menu, short beforeID);
  49. pascal void Patched_DrawMenuBar(void);
  50. pascal long Patched_MenuSelect(Point where);
  51. pascal void Patched_SystemMenu(long result);
  52.  
  53. #endif  ____SYSMENU_HEADER____
  54.